package com.xiaoyu.lanling.feature.moment.model.detail

import `in`.srain.cube.request.JsonData
import `in`.srain.cube.views.list.ListItemTypedBase
import com.xiaoyu.base.model.User
import com.xiaoyu.lanling.media.image.UserImageLoadParam

class LikeItem(val jsonData: JsonData) : ListItemTypedBase {

    val user = User.fromJson(jsonData)
    val loadParam = UserImageLoadParam.newBuilder().setUserAndDP(user, 40).build()
    val time = jsonData.optString("activeTime")

    override fun getViewType(): Int {
        return 0
    }
}